package com.behavior.strategy.operation;

/**
 * <p></p>
 *
 * @author jiuhua.xu
 * @version 1.0
 * @since JDK 1.8
 */
public class Test {
    public static void main(String[] args) {

        Context context = new Context(new OperationAdd());
        System.out.println("10+4=" + context.executeStrategy(10, 4));

        context = new Context(new OperationSubtract());
        System.out.println("10-4=" + context.executeStrategy(10, 4));

        context = new Context(new OperationMultiply());
        System.out.println("10*4=" + context.executeStrategy(10, 4));

    }
}
